<!DOCTYPE html>
<%@page contentType="text/html;charset=UTF-8" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%
    String rootDir = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + rootDir + "/";
%>
<html>

<head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta name="description" content=""/>
    <meta name="keywords" content=""/>
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="css/common2.css">
    <link rel="stylesheet" type="text/css" href="css/login.css">
</head>
<body>
<div class="xx-loreg center">
    <!--主体-->
    <div class="login">

        <div class="menu_ui2">

            <div class="logoin-w-ts">
                <div class="logoin-w-ts-bj">
                    <div class="logoin-head">
                        <h3 class="logoin-head-h3 ">登录</h3>
                    </div>

                    <div class="xx-form">
                        <form action="direct/login.htm" method="post">
                            <div class="margin-b-5" style="text-align: center">
                                <span class="color-f0f0f0" style="font-style: italic">${tip}</span>
                            </div>
                            <div class="xx-input">
                                <label class="xx-login-label"><i class="xx-icon-heads "></i></label>
                                <input autofocus="autofocus" type="text" class="xx-itxt" name="name" value="${name}">
                            </div>
                            <div class="xx-input">
                                <label class="xx-login-label"><i class="xx-icon-locks"></i></label>
                                <input type="password" class="xx-itxt" name="password" value="${password}">
                            </div>
                            <div class="xx-span  txt_black7">
                            </div>
                            <div class="xx-input gy">
                                <%--<a class="xx-loreg-btn btn-4-login">登&nbsp;&nbsp;录</a>--%>
                                <button class="xx-loreg-btn btn-4-login">登&nbsp;&nbsp;录</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>


</div>
</body>
<script src="<%=basePath%>plugins/jquery/jquery-1.11.3.min.js"></script>
<script>
    $(function () {
        $('input[name=name], input[name=password]').focus(function () {
            $('input').parent().removeClass('hover');
            $(this).parent().addClass('hover');
        }).blur(function () {
            $(this).parent().removeClass('hover');
        });

        $('.btn-4-login').click(function () {
            localStorage.clear();
            $('form').submit();
        });

        $(function () {
            addEventListener("keydown", function (e) {
                if (e.keyCode == 13) {
                    $('form').submit();
                }
            }, false);
        })
    });
</script>
</html>
